package com.sohoometer.netpackage;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;

public class CodecFactory implements ProtocolCodecFactory {
	private Encode encode = new Encode();
	private Decode decode = new Decode();

	@Override
	public ProtocolEncoder getEncoder(IoSession session) throws Exception {
		return encode;
	}

	@Override
	public ProtocolDecoder getDecoder(IoSession session) throws Exception {
		// TODO Auto-generated method stub
		return decode;
	}

}
